package com.learn.jvm;

// JVM设置 ‐Xss128k(默认1M)
public class StackOverflowTest {
    static int count = 0;

    static void redo() {
         count++;
         redo();
    }

    public static void main(String[] args) {
         try {
             redo();
        } catch (Throwable t) {
             t.printStackTrace();
             System.out.println(count);

        }
    }
}
